<div id="login-form">
	<%= form_for @user_session, :url => user_session_path do |f| %>
	<table id="login-form">
		<tr>
			<td align="right"><label> Name </label></td>
			<td align="left"><%= f.text_field :login %></td>
		</tr>
		<tr>
			<td align="right"><label> Password </label></td>
			<td align="left"><%= f.password_field :password %></td>
		</tr>
		<tr>
			<td align="left"></td>
			<td align="left"> <%= f.check_box :remember_me %><%= f.label :remember_me %></td>
		</tr>
		<tr>
			<td align="left"></td>
			<td align="right"> <%= submit_tag "Login »" , :url=>{:action=>"Login"} %></td>
		</tr>
		<tr>
			<td></td>
			<td class="error"> 
				<% if @user_session.errors.any? %>
					<% @user_session.errors.full_messages.each do |msg| %>
						<li><%= msg %></li>
					<% end %>
				<% end %> 
			</td>
		</tr>
	</table>
	<% end %>
</div>